package com.zhiyou100.api.list_test;

/**
 * 博客信息实体类
 */
public class Blog {

    private Integer id;  //博客id
    private String title;//标题
    private String content;//内容
    private String category;//分类
    private int like_num; //点赞数量

    public Blog() {
    }

    public Blog(Integer id, String title, String content, String category, int like_num) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.category = category;
        this.like_num = like_num;
    }

    @Override
    public String toString() {
        return "Blog{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", category='" + category + '\'' +
                ", like_num=" + like_num +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public int getLike_num() {
        return like_num;
    }

    public void setLike_num(int like_num) {
        this.like_num = like_num;
    }
}
